<template>
  <el-dialog title="检索" :visible.sync="dialogFormSearch" width="50%" center>
    <el-form :model="form">
      <el-form-item label="活动名称" :label-width="formLabelWidth">
        <el-input v-model="form.name" autocomplete="off" />
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormSearch = false">取 消</el-button>
      <el-button type="primary" @click="searchBtn">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: ''
      },
      dialogFormSearch: false,
      formLabelWidth: '80px'
    }
  },
  methods: {
    searchBtn() {
      this.dialogFormSearch = false
      this.$emit('searchContent', { name: this.form.name })
      this.form.name = ''
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
